﻿Imports DAO
Imports DTO
Imports System.Data.Linq

Public Class TheThuVienBus
    Public Shared Function LayBang() As Table(Of TheThuVien)
        Return TheThuVienDao.LayBang()
    End Function

    Public Shared Function LayDanhSach() As IEnumerable(Of TheThuVien)
        Dim lst As IEnumerable(Of TheThuVien)
        lst = TheThuVienDao.LayDanhSach()
        Return lst
    End Function

    Public Shared Function LayThe(ByVal m As Integer) As TheThuVien
        Return TheThuVienDao.LayThe(m)
    End Function

    Public Shared Sub Them(ByVal t As TheThuVien)
        TheThuVienDao.Them(t)
    End Sub

    Public Shared Sub CapNhat(ByVal t As TheThuVien)
        TheThuVienDao.CapNhat(t)
    End Sub

    Public Shared Sub Xoa(ByVal m As Integer)
        TheThuVienDao.Xoa(m)
    End Sub
End Class
